<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateUnidadeFederacaoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" styleClass="ajustaListaMensagemErro"  layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="list"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateUnidadeFederacaoLabel_ufdCd}" for="ufdCd" />
                    <p:inputText id="ufdCd" value="#{unidadeFederacaoController.selected.ufdCd}" title="#{bundle.CreateUnidadeFederacaoTitle_ufdCd}" required="true" requiredMessage="#{bundle.CreateUnidadeFederacaoRequiredMessage_ufdCd}"/>
                    <h:outputLabel value="#{bundle.CreateUnidadeFederacaoLabel_ufdCdIbge}" for="ufdCdIbge" />
                    <p:inputText id="ufdCdIbge" value="#{unidadeFederacaoController.selected.ufdCdIbge}" title="#{bundle.CreateUnidadeFederacaoTitle_ufdCdIbge}" />
                    <h:outputLabel value="#{bundle.CreateUnidadeFederacaoLabel_ufdNm}" for="ufdNm" />
                    <p:inputText id="ufdNm" value="#{unidadeFederacaoController.selected.ufdNm}" title="#{bundle.CreateUnidadeFederacaoTitle_ufdNm}" />
                    <h:outputLabel value="#{bundle.CreateUnidadeFederacaoLabel_ufdSg}" for="ufdSg" />
                    <p:inputText id="ufdSg" value="#{unidadeFederacaoController.selected.ufdSg}" title="#{bundle.CreateUnidadeFederacaoTitle_ufdSg}" />
                    <h:outputLabel value="#{bundle.CreateUnidadeFederacaoLabel_ufdArKm2}" for="ufdArKm2" />
                    <p:inputText id="ufdArKm2" value="#{unidadeFederacaoController.selected.ufdArKm2}" title="#{bundle.CreateUnidadeFederacaoTitle_ufdArKm2}" />
                    <h:outputLabel value="#{bundle.CreateUnidadeFederacaoLabel_ufdQtPopulacao}" for="ufdQtPopulacao" />
                    <p:inputText id="ufdQtPopulacao" value="#{unidadeFederacaoController.selected.ufdQtPopulacao}" title="#{bundle.CreateUnidadeFederacaoTitle_ufdQtPopulacao}" />
                    <h:outputLabel value="#{bundle.CreateUnidadeFederacaoLabel_ufdGmPoligono}" for="ufdGmPoligono" />
                    <p:inputText id="ufdGmPoligono" value="#{unidadeFederacaoController.selected.ufdGmPoligono}" title="#{bundle.CreateUnidadeFederacaoTitle_ufdGmPoligono}" />
                    <h:outputLabel value="#{bundle.CreateUnidadeFederacaoLabel_ufdRpaCd}" for="ufdRpaCd" />
                    <h:selectOneMenu id="ufdRpaCd" value="#{unidadeFederacaoController.selected.ufdRpaCd}" title="#{bundle.CreateUnidadeFederacaoTitle_ufdRpaCd}" >
                        <f:selectItems value="#{paisController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{unidadeFederacaoController.create}" value="#{bundle.CreateUnidadeFederacaoSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{unidadeFederacaoController.prepareList}" value="#{bundle.CreateUnidadeFederacaoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateUnidadeFederacaoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
